package sample.api.client;

/**
 * Created by IntelliJ IDEA.
 * User: seth.yang
 * Date: 2014/12/22
 * Time: 19:49
 */
public class RestfulClientException extends Exception {
    private int errorCode;

    public RestfulClientException (int errorCode) {
        this.errorCode = errorCode;
    }

    public RestfulClientException (String message, int errorCode) {
        super (message);
        this.errorCode = errorCode;
    }

    public RestfulClientException (String message, Throwable cause, int errorCode) {
        super (message, cause);
        this.errorCode = errorCode;
    }

    public RestfulClientException (Throwable cause, int errorCode) {
        super (cause);
        this.errorCode = errorCode;
    }
}